import 'package:flutter/material.dart';

class KeyboardAwareBottomSheet extends StatelessWidget {
  final Widget child;
  final VoidCallback? onDismiss;

  const KeyboardAwareBottomSheet({
    super.key,
    required this.child,
    this.onDismiss,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(
        bottom: MediaQuery.of(context).viewInsets.bottom,
      ),
      child: child,
    );
  }
}